package com.wu.gconduit.realtime.util

import java.util.Properties

object ConfigUtil {

  //  用类加载器加载配置文件
  val is = ConfigUtil.getClass.getClassLoader.getResourceAsStream("config.properties")
  private val props = new Properties()

  props.load(is)


  def getProperty(key: String) = props.getProperty(key)

  def main(args: Array[String]): Unit = {
    print(getProperty("kafka.servers"))

    print(getProperty("kafka.group.id"))
  }

}
